/******************************************************************************
 *
 *  Latest Chatty Command Line Client
 *  By Electroly.
 *
 *  CONSTANT.H
 *
 *  Global constants and macros.
 *  
 *****************************************************************************/

#ifndef _CONSTANT_H_
#define _CONSTANT_H_

#define HOSTNAME         "www.shackchatty.com"

#define MAX_POST_LENGTH  4096

/* Error reporting.  All fails are epic. */
typedef int error_t;
#define OK   0
#define FAIL (-1)

#define MIN(x, y) ((x)>(y)?(y):(x))
#define MAX(x, y) ((x)<(y)?(y):(x))

#ifndef BOOL
typedef int BOOL;
#define TRUE 1
#define FALSE 0
#endif

#endif // _CONSTANT_H_